package com.weimob.mcloud.wechatwork.customer.config;

/**
 * @author by xmh on 2020/10/29.
 */
public class CacheConfig {
//    @Setter
//    private RedisConnectionFactory redisConnectionFactory;
//    @Bean
//    public CacheManager cacheManager(){
//        RedisCacheConfiguration redisCacheConfiguration=RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofSeconds(3600));
//        // 使用自定义的缓存配置初始化一个cacheManager
//        return RedisCacheManager.builder(redisConnectionFactory).cacheDefaults(redisCacheConfiguration).build();
//    }
}

